package br.com.montezuma.despesas.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import br.com.caelum.vraptor.Resource;

/**
 * <pre>
 * @author : Vitor Barroso          
 * Purpose      :  Representation of Distancia/Local.
 * Amendment History                                                                
 * Date - Local Origem - Local Destino - Km                              
 * 20/05/2012 - Vitor Barroso - initial version.
 * 
 * Copyright 2012 Montezuma Software
 * </pre>
 */
@Resource
@Entity
public class DistanciaLocal {
	@Id
	@GeneratedValue
	private long id;
	@Column(length = 50, nullable = false)
	private String origem;
	@Column(length = 50, nullable = false)
	private String destino;
	@Column(length = 50, nullable = false, name = "km")
	private double km;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the origem
	 */
	public String getOrigem() {
		return origem;
	}

	/**
	 * @param origem
	 *            the origem to set
	 */
	public void setOrigem(String origem) {
		this.origem = origem;
	}

	/**
	 * @return the destino
	 */
	public String getDestino() {
		return destino;
	}

	/**
	 * @param destino
	 *            the destino to set
	 */
	public void setDestino(String destino) {
		this.destino = destino;
	}

	/**
	 * @return the km
	 */
	public double getKm() {
		return km;
	}

	/**
	 * @param km
	 *            the km to set
	 */
	public void setKm(double km) {
		this.km = km;
	}

}